{include file=$header_start}
{strip}
<script type="text/javascript" src="{$siteroot}/includes/js/admin/checkall.js" /></script>
{/strip}
{include file=$header_end}
{literal}
<script type="text/javascript">
$(function(){
$(".someClass").tipTip();
});

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});
</script>
{/literal}
<div class="contain">
      {include file=$left_menu}
      <div class="right_contain">
         <div class="heading_box">Manage Tradesman Lead User <a href="javascript:;" class="someClass" title="{$moduelArray.module_help_text}" style="float:right;"><img src="{$siteroot}/templates/admin/img/topic_icon6.png" /></a></div>
         <div class="whitebox">
         <!--Message Div Start-->
         {if $msg}
         <div class="masg_div">
         	{$msg}
         </div>
         {/if}
         <!--Message Div End-->
         <div>
          <!--Form Contain start-->
           <div class="table_viewbox">
            <!--<h2>Table Design</h2>-->
            <form name="searchFrm" id="searchFrm" method="post" action="{$siteroot}/admin/home.php?q=tradesmanuserlist">
            	<table width="100%" border="0" cellpadding="3" cellspacing="5">
                	<tr>
                    	
                        <td align="right"><input type="text" name="search" id="search" class="input41" value="{if $search neq ''}{$search}{else}Tradesman Name{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='Tradesman Name'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='{$siteroot}/admin/home.php?q=tradesmanuserlist';" /></td>
                    </tr>
                </table>
            </form>
            <form name="frm" id="frm" action="" method="post" >
            <input type="hidden" name="hidden_pageno" id="hidden_pageno" value="{$page}" />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
              <tr>
                <th width="3%" align="center">#</th>

                <th width="80%">
                	<div class="lF"><a {if $smarty.get.col1|base64_decode eq '0'} href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col1={1|base64_encode}&page={$page}" {else}href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col1={0|base64_encode}&page={$page}" {/if}>Tradesman Name</a></div>
                	<div class="lF" style="margin-left:10px;  height:15px;">
                    	<div style="width:10px; height:6px;"><a href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col1={0|base64_encode}&page={$page}" ><img {if $smarty.get.col1|base64_decode eq '1' || $smarty.get.col2 neq '' || $smarty.get.col3 neq ''} src="{$siteroot}/templates/admin/img/admin_toparrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_toparrow_black.png" {/if} title="ASC"  width="10" height="6" align="top"/></a> <br /></div>
                        <div style="width:10px; height:6px; margin-top:3px; *margin-top:4px;"><a href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col1={1|base64_encode}&page={$page}"><img {if $smarty.get.col1|base64_decode eq '0' || $smarty.get.col1|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_downarrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_downarrow_black.png" {/if} title="DESC"  width="10" height="6" align="bottom" /></a></div>
                    </div>
                    <div class="clear"></div>   	
                </th>
                <th width="20%">
                	<div class="lF" style="padding-left:40px;"><a {if $smarty.get.col2|base64_decode eq '0'} href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col2={1|base64_encode}&page={$page}" {else}href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col2={0|base64_encode}&page={$page}" {/if}>Lead Count</a></div>
                	<div class="lF" style="margin-left:10px;  height:15px;">
                    	<div style="width:10px; height:6px;"><a href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col2={0|base64_encode}&page={$page}" ><img {if $smarty.get.col2|base64_decode eq '1' || $smarty.get.col2|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_toparrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_toparrow_black.png" {/if} title="ASC"  width="10" height="6" align="top"/></a> <br /></div>
                        <div style="width:10px; height:6px; margin-top:3px; *margin-top:4px;"><a href="{$siteroot}/admin/home.php?q=tradesmanuserlist&col2={1|base64_encode}&page={$page}"><img {if $smarty.get.col2|base64_decode eq '0' || $smarty.get.col2|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_downarrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_downarrow_black.png" {/if} title="DESC"  width="10" height="6" align="bottom" /></a></div>
                    </div>
                    <div class="clear"></div>                 
				</th>
              </tr>
              {if $userArray}
              {section name=i loop=$userArray}
              <tr class="inactiverow" id="tr_{$userArray[i].id}">
                <td align="center">{$newid}</td>              
                <td>{$userArray[i].first_name|ucfirst}&nbsp;{$userArray[i].last_name|ucfirst}</td>
                <td align="center"><a href="{$siteroot}/admin/home.php?q=jobleads&userid={$userArray[i].id|base64_encode}" >[{$userArray[i].jobcnt}]</a></td>
              </tr>
              <!-- {$newid++} -->
              {/section}
               {else}
              <tr>
               <td colspan="3" align="center" class="error">Record Not Found</td>
              </tr>
              {/if}
               <tr>
                <td colspan="3">
                
                  <div class="pagination">
                  {if $pagination}{$pagination}{/if}
                  </div>
                   </td>
                  
              </tr>
            </table>
</form>
         </div>
            <!--Form Contain end--> 
         </div>
         </div>
        </div>
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
{include file=$footer}